<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header_fixed"); ?>
<!--main-->
<div class="main mian_box clearfix mgt_60">
    <div class="pull-left" style="width:900px;">


        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=b22291ce36e15a79267c70ea285e17a5&action=lists&catid=%24catid&num=8&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 8;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
        

        <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
            <!-- <li><span class="rt"><?php echo date('Y-m-d H:i:s',$r[inputtime]);?></span>·<a href="<?php echo $r['url'];?>" target="_blank"<?php echo title_style($r[style]);?>><?php echo $r['title'];?></a></li>
            <?php if($n%5==0) { ?><li class="bk20 hr"></li><?php } ?> -->


            <div class="det_list_box">
                <div class="det_list pull-left">
                    
                    <div class="det_list_left"><a href="<?php echo $r['url'];?>"><img src="<?php echo thumb($r['thumb'],400,300);?>" alt="" width="400" height="300"></a></div>
                    <div class="det_list_right">
                        <a href="<?php echo $r['url'];?>"><p class="det_list_title"><?php echo str_cut($r['title'],60);?></p></a>
                       <!--  <span class="det_list_type mg_ub_30"><?php echo catpos_location($catid,$symbol='  ');?></span> -->

                        <p class="det_list_depict">
                            <?php echo str_cut($r['description'],160);?>
                        </p>
                        <br/>
                        <p class="det_list_time"><?php echo date('Y-m-d',$r[inputtime]);?>&nbsp;<?php echo $r['username'];?></p>

                    </div>
                </div>
            </div>
        <?php $n++;}unset($n); ?>
            <div class="my_page clearfix">
                <div id="pages" class="text-c my_page_det"><?php echo $pages;?></div>
            </div>

        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>





       
    </div>

    <div class="pull-right" style="width:300px;">
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=3a5dccd992dbe68f373f9b99ab2c228e&action=lists&catid=15&order=updatetime+DESC&thumb=1&num=5&return=info\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$info = $content_tag->lists(array('catid'=>'15','order'=>'updatetime DESC','thumb'=>'1','limit'=>'5',));}?>
    <?php $n=1;if(is_array($info)) foreach($info AS $v) { ?>
        <div class="det_order_img">
            <a href="<?php echo $v['url'];?>" target="_blank"><img src="<?php echo thumb($v[thumb],300,160);?>" alt="<?php echo $v['title'];?>"></a>
            <!-- <a href=""><img src="<?php echo IMG_PATH;?>mag/subscribe.jpg" alt="<?php echo $v['title'];?>" width="100%" height="120"></a> -->
        </div>
    <?php $n++;}unset($n); ?>
    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>

        <!-- <div class="det_order_img">
            <img src="<?php echo IMG_PATH;?>mag/subscribe-small.jpg" alt="" >
        </div> -->


      <!--   <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=0ad40a45ad075d8f47798a231e25aec2&action=hits&catid=%24catid&num=10&order=views+DESC&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$tag_cache_name = md5(implode('&',array('catid'=>$catid,'order'=>'views DESC',)).'0ad40a45ad075d8f47798a231e25aec2');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'hits')) {$data = $content_tag->hits(array('catid'=>$catid,'order'=>'views DESC','limit'=>'10',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>

            <?php if($data) { ?>
                <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                    <div class="det_recommend_box">
                        <a href="<?php echo $r['url'];?>" target="_blank">
                            <div class="det_recommend_boximg">
                              <img src="<?php echo thumb($r['thumb'],400,300);?>" alt="" >
                            </div>
                            <p class="det_recommend_title"><?php echo str_cut($r['title'],120);?></p>
                        </a>
                    </div>
                <?php $n++;}unset($n); ?>

            <?php } else { ?>
                <!-- <span>暂无</span> -->
            <?php } ?>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div> 


    


    
</div>
<div class="clearfix">
    <?php include template("content","footer"); ?>
</div>

<script> 
   
</script> 